#include "firstwidget.h"
#include "ui_firstwidget.h"

#include "mysql.h"

firstwidget::firstwidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::firstwidget)
{
    ui->setupUi(this);
    connect(ui->btn_export,&QPushButton::clicked,[=]()
    {
        Excel *e=new Excel;

        e->show();
        e->InitExcel();
//        this->hide();

    });
    connect(ui->btn_mysql,&QPushButton::clicked,[=]()
    {
        mysql *sql=new mysql;
        sql->show();
        this->hide();
    });
}

firstwidget::~firstwidget()
{
    delete ui;
}
